﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
</head>
<body>
	<div class="main">
		<div class="optitle clearfix">
			<div class="title">用户管理&gt;&gt;</div>
		</div>
		<form action="${pageContext.request.contextPath}/UserServlet?type=delete" method="post">
			<div class="content">
				<table class="box"> 
					<tr>
						<td class="field">用户编号：</td>
						<td>${user.userId}<input  type="hidden" id="userId" name="userId" value="${user.userId}"/></td>
						
					</tr>
					<tr>
						<td class="field">用户名：</td>
						<td>${user.name}</td>
					</tr>
					<tr>
						<td class="field">用户账号：</td>
						<td>${user.loginname}</td>
					</tr>

					<tr>
						<td class="field">用户性别：</td>
						<td><c:choose>
								<c:when test="${user.gender==1}">男</c:when>
								<c:otherwise> 女</c:otherwise>
							</c:choose>
						</td>
					</tr>
					<tr>
						<td class="field">出生日期：</td>
						<td>${user.birthdate}
						</td>
					</tr>
					
					<tr>
						<td class="field">用户电话：</td>
						<td>${user.phone}
						</td>

					</tr>
					<tr>
						<td class="field">用户地址：</td>
						<td>${user.address}
						</td>
					</tr>
					<tr>
						<td class="field">用户权限：</td>

						<td><c:choose>
							<c:when test="${user.userType==1}">管理员</c:when>
							<c:when test="${user.userType==2}">普通员工</c:when>
							<c:otherwise> 经理</c:otherwise>
						</c:choose></td>
					</tr>
				</table>
			</div>
			<div class="buttons">
				<input type="submit" id="del" value="删除" class="input-button"  /> 
				<input type="button"  id="backButton" onclick="history.back(-1)" value="返回" class="input-button" />
			</div>
		</form>
	</div>
	
</body>
</html>
